package com.lee.boot.order.service;

import com.lee.boot.order.entity.ProductInfo;
import com.baomidou.mybatisplus.extension.service.IService;
public interface ProductInfoService extends IService<ProductInfo>{

    ProductInfo getProductInfo(String productId);

    Boolean buyProduct(String productId,Integer count);
    Boolean buyProductOptimismLock(String productId,Integer count);
    Boolean buyProductOptimismLockReentrant(String productId,Integer count);

}
